<a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse"> <em
        class="icon-double-angle-up icon-only bigger-110"></em></a>
<!--basic scripts
  -->
<!--遮罩层-->
<div id="dialog-overlay"></div>
<!--对话框-->
<div class="layer" id="layer">
    <div class="top">
        <a class="up cancel" href="#" onclick="Cancel();">&times;</a>
        <span style="color: red; ">提示</span>
    </div>
    <p class="in" id="tipName"></p>
    <div class="bott">
        <a href="#" class="btn btn-warning btn-minier" onclick="" id="tipButton">确定</a>
        <a href="#" class="btn btn-minier" onclick="Cancel();">取消</a>
    </div>
</div>
<!--提示框-->
<div class="tip" id="tip">
    <p></p>
</div>
<script type="text/javascript">
    window.jQuery || document.write("<script src='/js/common/jquery-1.11.3.min.js'>" + "<" + "/script>");
</script>
<script language="javascript" type="text/javascript" th:src="@{/js/layer/tip.js}"></script>
<script th:src="@{/js/common/bootstrap.min.js}"></script>
<!--page specific plugin scripts-->
<!--[if lte IE 8]>
<script th:src="@{/js/excanvas.min.js}"></script>
<![endif]-->
<script th:src="@{/js/jquery-ui.custom.min.js}"></script>
<script th:src="@{/js/jquery.ui.touch-punch.min.js}"></script>
<script th:src="@{/js/common/jquery.slimscroll.min.js}"></script>
<!--局部滚动条-->
<!--ace scripts-->
<script th:src="@{/js/common/ace-elements.min.js}"></script>
<script th:src="@{/js/common/ace.min.js}"></script>
<script th:src="@{/js/placeholder_plus.js}"></script>
<!--inline scripts related to this page-->
<script type="text/javascript">
    $(function () {
        $('input[placeholder]').placeholder();//placeholder IE9以下补丁
        $('#tasks').sortable();
        $('#tasks').disableSelection();
        $('#tasks input:checkbox').removeAttr('checked').on('click', function () {
            if (this.checked) $(this).closest('li').addClass('selected');
            else $(this).closest('li').removeClass('selected');
        });

        //var oldie = $.browser.msie && $.browser.version < 9;
        $('.easy-pie-chart.percentage').each(function () {
            var $box = $(this).closest('.infobox');
            var barColor = $(this).data('color') || (!$box.hasClass('infobox-dark') ? $box.css('color') : 'rgba(255,255,255,0.95)');
            var trackColor = barColor === 'rgba(255,255,255,0.95)' ? 'rgba(255,255,255,0.25)' : '#E2E2E2';
            var size = parseInt($(this).data('size')) || 50;
            $(this).easyPieChart({
                barColor: barColor,
                trackColor: trackColor,
                scaleColor: false,
                lineCap: 'butt',
                lineWidth: parseInt(size / 10),
                animate: oldie ? false : 1000,
                size: size
            });
        })

        $('.sparkline').each(function () {
            var $box = $(this).closest('.infobox');
            var barColor = !$box.hasClass('infobox-dark') ? $box.css('color') : '#FFF';
            $(this).sparkline('html', {
                tagValuesAttribute: 'data-values',
                type: 'bar',
                barColor: barColor,
                chartRangeMin: $(this).data('min') || 0
            });
        });

        $('#recent-box[data-rel="tooltip"]').tooltip({placement: tooltip_placement});

        function tooltip_placement(context, source) {
            var $source = $(source);
            var $parent = $source.closest('.tab-content');
            var off1 = $parent.offset();
            var w1 = $parent.width();

            var off2 = $source.offset();
            var w2 = $source.width();

            if (parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2)) return 'right';
            return 'left';
        }

    });
    $("form").submit(function () {
        $(":submit", this).attr("disabled", "disabled");
    });
</script>